package com.teach.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.teach.entity.NewsClass;

public interface NewsClassMapper {
    int deleteByPrimaryKey(Integer newsClassId);

    int insert(NewsClass record);

    int insertSelective(NewsClass record);

    NewsClass selectByPrimaryKey(Integer newsClassId);
    
    @Select("select * from news_class where NEW_NEWS_CLASS_ID is not null")
    List<NewsClass> selectAll();

    int updateByPrimaryKeySelective(NewsClass record);

    int updateByPrimaryKey(NewsClass record);
}